-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADD VOQ COUNTERS(SAI_SWITCH_STAT_PACKET_INTEGRITY_DROP, SAI_QUEUE_ST…T_CREDIT_WD_DELETED_PACKETS) support for VOQ/Fabric switches #3152
ADD VOQ COUNTERS(SAI_SWITCH_STAT_PACKET_INTEGRITY_DROP, SAI_QUEUE_ST…T_CREDIT_WD_DELETED_PACKETS) support for VOQ/Fabric switches #3152
Conversation
@vmittal-msft @rlhui, please review it |
sonic-net/sonic-utilities#3322 adds the changes for show cli commands. |
490e70e
to
84e52a8
Compare
@vmittal-msft , please help to review? |
orchagent/fabricportsorch.cpp
Outdated
@@ -24,6 +24,9 @@ | |||
#define FABRIC_DEBUG_POLLING_INTERVAL_DEFAULT (60) | |||
#define FABRIC_MONITOR_DATA "FABRIC_MONITOR_DATA" | |||
#define APPL_FABRIC_PORT_PREFIX "Fabric" | |||
#define SWITCH_DEBUG_COUNTER_FLEX_COUNTER_GROUP "SWITCH_DEBUG_COUNTER" | |||
#define SWITCH_DEBUG_COUNTER_POLLING_INTERVAL_MS 60000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saksarav-nokia is this 60 secs ? Any reason we are picking 60 secs as polling ?
Also, Can you please rebase the code as well as add test cases for this ? |
3cd51ad
to
ee78f39
Compare
@saksarav-nokia please re-base. |
ee78f39
to
11d393e
Compare
Thanks for taking care of comments. Please add test cases to cover these changes |
@prsunny please help merge this once VS tests passes. Also show commands tests are added (sonic-net/sonic-utilities#3322). |
@vmittal-msft , @prsunny , Building vs image with latest master fails which delays my vstest. I have tried in few machines and see the same following errors. Any help would be appreciated. server/test_arbitration.cpp:329: Failure [----------] Global test environment tear-down 5 FAILED TESTS |
7beca44
to
09fe985
Compare
Signed-off-by: saksarav <[email protected]>
Signed-off-by: saksarav <[email protected]>
Signed-off-by: saksarav <[email protected]>
908d3ed
to
190eaf0
Compare
@vmittal-msft , i rebased. please merge it. |
…T_CREDIT_WD_DELETED_PACKETS) support for VOQ/Fabric switches (sonic-net#3152) What I did Added support for SAI_SWITCH_STAT_PACKET_INTEGRITY_DROP, SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS stats counters for VOQ and Fabric type switches. Why I did it To read the drop counters
Cherry-pick PR to 202405: #3197 |
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! |
6 similar comments
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! |
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! |
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! |
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! |
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! |
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! |
…T_CREDIT_WD_DELETED_PACKETS) support for VOQ/Fabric switches (sonic-net#3152) What I did Added support for SAI_SWITCH_STAT_PACKET_INTEGRITY_DROP, SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS stats counters for VOQ and Fabric type switches. Why I did it To read the drop counters
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
3 similar comments
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
@saksarav-nokia cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
…T_CREDIT_WD_DELETED_PACKETS) support for VOQ/Fabric switches (#3152) What I did Added support for SAI_SWITCH_STAT_PACKET_INTEGRITY_DROP, SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS stats counters for VOQ and Fabric type switches. Why I did it To read the drop counters
What I did
Added support for SAI_SWITCH_STAT_PACKET_INTEGRITY_DROP, SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS stats counters for VOQ and Fabric type switches.
Why I did it
To read the drop counters
How I verified it
Simulated the error in BCM DNX switches (J2C+ and Ramon) and verified that the "show queue counter --voq" and "show dropcounters counts" shows the correct values.
Details if related